package site.assad.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: Al-assad 余林颖
 * E-mail: yulinying_1994@outlook.com
 * Date: 2017/12/15 10:57
 * Description: game_item 的领域对象
 */
public class Game {
    private int id;
    private String name;
    private int collectedCount;
    private List<User> users = new ArrayList<>();  //收集该game的user列表：不提供对外访问接口，由 GameDao 进行延迟初始化

    public Game() {
    }

    public Game(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getCollectedCount() {
        return collectedCount;
    }

    public void setCollectedCount(int collectedCount) {
        this.collectedCount = collectedCount;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }


}
